package com.lwc.bean;

import com.lwc.common.crud.ISave;
import com.lwc.common.crud.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@ApiModel("企业")
public class Enterprise {


    @ApiModelProperty(value = "企业id，修改时不能为空！")
    @NotNull(message = "企业id不能为空！", groups = {IUpdate.class})
    int id;

@ApiModelProperty(hidden = true)
String code;

    @ApiModelProperty(value = "企业名称不可修改",required = true)
    @NotBlank(message = "企业名称不能为空！", groups = {ISave.class})
    String name;
    String user;
    String mobile;
    String categoryCode;
    String categoryName;
    String address;


}
